package com.yowasa.xiuxian.engine.item.danyao;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserAttr;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;

@Item(name = "黄油蟹蟹", type = ItemTypeEnum.DAN_YAO, price = 5)
public class HuangYouXieXie implements ItemInterface {

    @Override
    public String desc() {
        return "全属性提升一点,暂无获取途径，仅游商有极低概率刷新";
    }

    @Override
    public String effect(UserBO userBO) {
        UserAttr userAttr = userBO.getUserAttr();
        userAttr.setCon(Math.min(userAttr.getCon() + 1, 100));
        userAttr.setDex(Math.min(userAttr.getDex() + 1, 100));
        userAttr.setInts(Math.min(userAttr.getInts() + 1, 100));
        userAttr.setLuc(Math.min(userAttr.getLuc() + 1, 100));
        userAttr.setStr(Math.min(userAttr.getStr() + 1, 100));
        userAttr.setUnd(Math.min(userAttr.getUnd() + 1, 100));
        return "你的所有属性增加一点。\n仅以此食物感谢各位玩家的支持。";

    }


}
